//
// Created by TNJ on 2021/6/29.
//

#ifndef QUEUE_EMULATION_STACK_STACK_H
#define QUEUE_EMULATION_STACK_STACK_H

#include "queue.h"

typedef struct stack{
    queue_arr_t queue1;
    queue_arr_t queue2;
}_stack_t;
extern void stack_init(_stack_t *s, int cap);
extern void stack_destroy(_stack_t *s);
extern void stack_push(_stack_t *s, int data);
extern int stack_pop(_stack_t *);
extern int stack_pop2(_stack_t *s);
extern bool stack_is_empty(_stack_t *s);
extern bool stack_is_full(_stack_t *s);

#endif //QUEUE_EMULATION_STACK_STACK_H
